// Copyright (c) Huoty, All rights reserved
// Author: Huoty <sudohuoty@163.com>
// CreateTime: 2021-01-05 14:10:51

package main

import "fmt"

func main() {
    mm := map[int]string{1: "a", 2: "b", 3: "c"}
    b := mm[2]
    mm[2] = b + "2"
    mm[4] = "d"
    fmt.Println(b)
    fmt.Println(mm)

    e, ok := mm[5]
    fmt.Println(e, ok)

    delete(mm, 4)
    delete(mm, 5)
    fmt.Println(mm)
}
